<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>

    <!-- 基本样式 -->
    <link rel="stylesheet" href="../src/mixins/style/normalize.css" />
    <link rel="stylesheet" href="../src/com_third/font-awesome/css/font-awesome.css">
    <link rel="stylesheet" href="../src/mixins/style/base.css" />

    <!-- 引入样式 -->
    <!-- <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css"> -->
    <link href="https://cdn.bootcss.com/element-ui/2.4.0/theme-chalk/index.css" rel="stylesheet">

    <!-- 当时项目公共样式 -->
    <link rel="stylesheet" href="src/common.css" />

    <style>
        .block {
            float: right;
        }
        .el-dropdown__caret-button {
            height: 32px;
        }
        .el-form--inline .el-form-item {
            width: 30%;
        }
    </style>
</head>

<body>

    <div v-cloak class="container clearfix" id="app">

        <m-card class="clearfix" title="查寻条件" :collapse="formCollapse">

            <el-form :inline="true" :model="searchForm" class="demo-form-inline" label-width="90px">
                <el-form-item label="运行日期">
                    <el-date-picker
                            v-model="searchForm.runDate"
                            type="date"
                            placeholder="选择日期"
                            value-format="yyyy-MM-dd">
                    </el-date-picker>
                </el-form-item>
                <el-form-item label="任务类型">
                    <el-select v-model="searchForm.jobType"  placeholder="==请选择==">
                        <el-option v-for="item in Enum.JobType" :key="item.value" :label="item.label" :value="item.value">
                        </el-option>
                    </el-select>
                </el-form-item>
            </el-form>

        </m-card>


        <div class="table_search_wrap">
            <el-button type="primary" @click="onSubmit">查询</el-button>
            <el-button type="primary" @click="handleImportBookId">导入书号</el-button>
            <el-button type="primary" @click="handleStartJob">启动任务</el-button>
            <el-button class="fr" @click="toggleSearhBodyCollapse">搜索条件切换</el-button>
            <!--<el-button @click="clearSearch">清空条件</el-button>
            <el-button @click="clearThenSearch">清空并搜索条件</el-button>-->
        </div>

        <el-table class="mt_10 clearfix" :data="tableList" border style="width: 100%">
            <el-table-column prop="createTime" label="开始时间">
            </el-table-column>
            <el-table-column prop="updateTime" label="结束时间">
            </el-table-column>
            <el-table-column prop="completeArtNum" label="作品信息完成数量">
                <template slot-scope="scope">
                    {{scope.row.completeArtNum==0?"无":scope.row.completeArtNum}}
                </template>
            </el-table-column>
            <el-table-column prop="failArtNum" label="作品信息失败数量">
                <template slot-scope="scope">
                    {{scope.row.failArtNum==0?"无":scope.row.failArtNum}}
                </template>
            </el-table-column>
            <el-table-column prop="completeChpNum" label="章节信息完成数量">
                <template slot-scope="scope">
                    {{scope.row.completeChpNum==0?"无":scope.row.completeChpNum}}
                </template>
            </el-table-column>
            <el-table-column prop="failChpNum" label="章节信息失败数量">
                <template slot-scope="scope">
                    {{scope.row.failChpNum==0?"无":scope.row.failChpNum}}
                </template>
            </el-table-column>
            <el-table-column prop="completeChpArtNum" label="章节完成的作品数量">
                <template slot-scope="scope">
                    {{scope.row.completeChpArtNum==0?"无":scope.row.completeChpArtNum}}
                </template>
            </el-table-column>
            <el-table-column prop="failChpArtNum" label="章节失败的作品数量">
                <template slot-scope="scope">
                    {{scope.row.failChpArtNum==0?"无":scope.row.failChpArtNum}}
                </template>
            </el-table-column>
            <el-table-column prop="completeConNum" label="内容信息完成数量">
                <template slot-scope="scope">
                    {{scope.row.completeConNum==0?"无":scope.row.completeConNum}}
                </template>
            </el-table-column>
            <el-table-column prop="failConNum" label="内容信息失败数量">
                <template slot-scope="scope">
                    {{scope.row.failConNum==0?"无":scope.row.failConNum}}
                </template>
            </el-table-column>
            <el-table-column prop="completeConArtNum" label="内容完成的作品数量">
                <template slot-scope="scope">
                    {{scope.row.completeConArtNum==0?"无":scope.row.completeConArtNum}}
                </template>
            </el-table-column>
            <el-table-column prop="failConArtNum" label="内容失败的作品数量">
                <template slot-scope="scope">
                    {{scope.row.failConArtNum==0?"无":scope.row.failConArtNum}}
                </template>
            </el-table-column>
            <el-table-column prop="jobType" label="任务类型">
                <template slot-scope="scope">
                    {{scope.row.jobType==1?"手动":"自动"}}
                </template>
            </el-table-column>
        </el-table>

        <div class="block">
            <el-pagination
                    background
                    @size-change="handleSizeChange"
                    @current-change="handleCurrentChange"
                    :current-page="currentPage"
                    :page-sizes="pageSizes"
                    :page-size="pageSize"
                    layout="total, sizes, prev, pager, next, jumper"
                    :total="totalCount">
            </el-pagination>
        </div>

    </div>

    <script src="../src/lib/jquery.js"></script>
    <script src="../src/lib/sea-all.js"></script>
    <script src="../src/lib/vue.js"></script>
    <script src="../src/lib/vue-router.js"></script>
    <script src="../boot.js"></script>
    <script src="../page/src/config.js"></script>


    <!-- 引入组件库 -->
    <!-- <script src="https://unpkg.com/element-ui/lib/index.js"></script> -->
    <script src="https://cdn.bootcss.com/element-ui/2.4.0/index.js"></script>

    <link href="https://cdn.bootcss.com/layer/3.1.0/theme/default/layer.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/layer/3.1.0/layer.js"></script>



    <script>
        $(function () {
            seajs.use('./08_jobList.js');
        })
    </script>



</body>

</html>
